package com.weilai.domain;

import java.util.Date;

public class Notifications {
    // 定义与表字段对应的私有属性
    private int id;
    private int userId;
    private String type;
    private int sourceUserId;
    private int postId;
    private int commentId;
    private boolean isRead;
    private Date createdAt;

    // 无参构造函数
    public Notifications() {
    }

    // 有参构造函数
    public Notifications(int id, int userId, String type, int sourceUserId, int postId, int commentId, boolean isRead, Date createdAt) {
        this.id = id;
        this.userId = userId;
        this.type = type;
        this.sourceUserId = sourceUserId;
        this.postId = postId;
        this.commentId = commentId;
        this.isRead = isRead;
        this.createdAt = createdAt;
    }

    // id属性的getter方法
    public int getId() {
        return id;
    }
    // id属性的setter方法
    public void setId(int id) {
        this.id = id;
    }

    // userId属性的getter方法
    public int getUserId() {
        return userId;
    }
    // userId属性的setter方法
    public void setUserId(int userId) {
        this.userId = userId;
    }

    // type属性的getter方法
    public String getType() {
        return type;
    }
    // type属性的setter方法
    public void setType(String type) {
        this.type = type;
    }

    // sourceUserId属性的getter方法
    public int getSourceUserId() {
        return sourceUserId;
    }
    // sourceUserId属性的setter方法
    public void setSourceUserId(int sourceUserId) {
        this.sourceUserId = sourceUserId;
    }

    // postId属性的getter方法
    public int getPostId() {
        return postId;
    }
    // postId属性的setter方法
    public void setPostId(int postId) {
        this.postId = postId;
    }

    // commentId属性的getter方法
    public int getCommentId() {
        return commentId;
    }
    // commentId属性的setter方法
    public void setCommentId(int commentId) {
        this.commentId = commentId;
    }

    // isRead属性的getter方法
    public boolean isRead() {
        return isRead;
    }
    // isRead属性的setter方法
    public void setRead(boolean isRead) {
        this.isRead = isRead;
    }

    // createdAt属性的getter方法
    public Date getCreatedAt() {
        return createdAt;
    }
    // createdAt属性的setter方法
    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }
}